package net.tuandn.training.lesson.gson;

import net.tuandn.training.model.City;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class PrettyPrinting {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		City hanoi = new City(1, "Hanoi", 4000000);
		Gson gson = new GsonBuilder().setPrettyPrinting().create();
		System.out.println(gson.toJson(hanoi));
	}

}
